#include <iostream>

struct Entity
{
    static int x , y;
    const static int z = 9;
    static void Print()
    {
        std::cout << x << ", " << y << ", " << z << std::endl;
    }
};

// 非常量静态变量需要在类外定义
int Entity::x;
int Entity::y;


int main()
{
    Entity entity;
    Entity::x = 2;
    Entity::y = 3;

    Entity entity2;
    Entity::x = 5;
    Entity::y = 6;

    Entity::Print();
}